package pure.engine.events 
{
	import flash.events.Event;
	
	/**
	 * 交互事件
	 * @author Pure
	 * 
	 */
public class InteractEvent extends Event 
{
	public function InteractEvent(type:String, worldX:Number, worldY:Number) 
	{
		super(type);
		
		this.worldX  =  worldX;
		this.worldY  =  worldY;
	}
	
	
	
	//======================
	// Const
	//======================
	
	
	public static const CLICK:String    =  "click";   // 点击
	public static const PRESS:String    =  "press";   // 按下
	public static const RELEASE:String  =  "release";  // 释放
	
	public static const MOVE:String     =  "move";  // 移动
	public static const OVER:String     =  "over";  // 移上
	public static const LEAVE:String    =  "leave";  // 离开

	
	
	/**
	 * 阻止
	 */
	override public function stopImmediatePropagation():void
	{
		prevented = true;
	}
	
	/**
	 * 阻止
	 */
	override public function stopPropagation():void
	{
		prevented = true;
	}
	
	
	
	//======================
	// Member
	//======================
	
	
	public var worldX:Number;  // 世界坐标x
	
	public var worldY:Number;  // 世界坐标y

	public var prevented:Boolean;
}

}